#pragma once

#include <QWidget>
#include "GLTools.h"

#if USE_QGL
class QGLWidget : public QOpenGLWidget, protected QOpenGLFunctions
{
	Q_OBJECT

public:
	QGLWidget(QWidget *parent);
	virtual ~QGLWidget();

	void GLUpdate();

protected:
	virtual void initializeGL();
	virtual void resizeGL(int w, int h);
	virtual void paintGL();
};
#endif